package org.dce.screencapturer.objects;

import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;

import org.dce.screencapturer.actions.drawing.InsertObjectAction;
import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class Ellipse extends RegularShapeObject {
	
	public static final class InsertAction extends InsertObjectAction {
		public InsertAction(){
			super("actions.ellipse",IconFactory.getIcon("/images/ellipse.png"), null,Ellipse.class);
		}
	};

	@Override
	protected Shape getShape() {
		
		Rectangle bounds = getDotsBounds();
		
		return new Ellipse2D.Float(bounds.x,bounds.y,bounds.width,bounds.height);
	}

}
